//
//  LCFileCell.m
//  LongChain
//
//  Created by FengZi on 2018/6/5.
//  Copyright © 2018年 FengZi. All rights reserved.
//

#import "LCFileCell.h"

@implementation LCFileCell


- (void)updateFileCellWithParameter:(id)parameter {
    
    NSString *url = [NSString stringWithFormat:@"%@%@",BASEURL,parameter[@"url"]];
    self.fileImageView.backgroundColor = RGB(241.0f, 241.0f, 241.0f);
    self.fileImageView.layer.cornerRadius = 2.0f;
    self.fileImageView.layer.masksToBounds = YES;
    [self.fileImageView sd_setImageWithURL:[NSURL URLWithString:url] placeholderImage:nil options:SDWebImageRetryFailed];
    
    NSString *name = [NSString stringWithFormat:@"%@",parameter[@"name"]];
    self.fileName.text = name;
    
    NSString *updateTime = [NSString stringWithFormat:@"%@ ",parameter[@"time"]];
    self.fileUpdateDate.text = updateTime;

}
@end
